<template>
<van-popup v-model="shop.show" position="bottom" :style="{ height: '100%' }">
  <add-shop v-if="shop.show" ref="addShop" @close="shop.onClose"></add-shop>
</van-popup>
</template>

<script>
import AddShop from '../Mine/AddShop.vue';
export default {
  components: { AddShop },
  data() {
    return {
      shop: {
        show: false,
        onClose: () => {
          this.$router.go(-1);
        },
        showBlank: (item) => {
          this.shop.show = true;
          this.$nextTick(() => {
            this.$refs.addShop.setValue(item);
          });
        }
      }
    };
  },
  created() {
    this.shop.showBlank(this.$route.params);
  }
};
</script>

<style lang="less">
</style>
